﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002CF RID: 719
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueUpdateMoneyInfoScNotify : IMessage<ChessRogueUpdateMoneyInfoScNotify>, IMessage, IEquatable<ChessRogueUpdateMoneyInfoScNotify>, IDeepCloneable<ChessRogueUpdateMoneyInfoScNotify>, IBufferMessage
	{
		// Token: 0x17000955 RID: 2389
		// (get) Token: 0x0600202E RID: 8238 RVA: 0x0005B6C7 File Offset: 0x000598C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueUpdateMoneyInfoScNotify> Parser
		{
			get
			{
				return ChessRogueUpdateMoneyInfoScNotify._parser;
			}
		}

		// Token: 0x17000956 RID: 2390
		// (get) Token: 0x0600202F RID: 8239 RVA: 0x0005B6CE File Offset: 0x000598CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueUpdateMoneyInfoScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000957 RID: 2391
		// (get) Token: 0x06002030 RID: 8240 RVA: 0x0005B6E0 File Offset: 0x000598E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueUpdateMoneyInfoScNotify.Descriptor;
			}
		}

		// Token: 0x06002031 RID: 8241 RVA: 0x0005B6E7 File Offset: 0x000598E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateMoneyInfoScNotify()
		{
		}

		// Token: 0x06002032 RID: 8242 RVA: 0x0005B6EF File Offset: 0x000598EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateMoneyInfoScNotify(ChessRogueUpdateMoneyInfoScNotify other) : this()
		{
			this.virtualItemInfo_ = ((other.virtualItemInfo_ != null) ? other.virtualItemInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002033 RID: 8243 RVA: 0x0005B724 File Offset: 0x00059924
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateMoneyInfoScNotify Clone()
		{
			return new ChessRogueUpdateMoneyInfoScNotify(this);
		}

		// Token: 0x17000958 RID: 2392
		// (get) Token: 0x06002034 RID: 8244 RVA: 0x0005B72C File Offset: 0x0005992C
		// (set) Token: 0x06002035 RID: 8245 RVA: 0x0005B734 File Offset: 0x00059934
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueVirtualItem VirtualItemInfo
		{
			get
			{
				return this.virtualItemInfo_;
			}
			set
			{
				this.virtualItemInfo_ = value;
			}
		}

		// Token: 0x06002036 RID: 8246 RVA: 0x0005B73D File Offset: 0x0005993D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueUpdateMoneyInfoScNotify);
		}

		// Token: 0x06002037 RID: 8247 RVA: 0x0005B74B File Offset: 0x0005994B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueUpdateMoneyInfoScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.VirtualItemInfo, other.VirtualItemInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002038 RID: 8248 RVA: 0x0005B780 File Offset: 0x00059980
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.virtualItemInfo_ != null)
			{
				num ^= this.VirtualItemInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002039 RID: 8249 RVA: 0x0005B7BC File Offset: 0x000599BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600203A RID: 8250 RVA: 0x0005B7C4 File Offset: 0x000599C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600203B RID: 8251 RVA: 0x0005B7CD File Offset: 0x000599CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.virtualItemInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.VirtualItemInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600203C RID: 8252 RVA: 0x0005B800 File Offset: 0x00059A00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.virtualItemInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.VirtualItemInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600203D RID: 8253 RVA: 0x0005B840 File Offset: 0x00059A40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueUpdateMoneyInfoScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.virtualItemInfo_ != null)
			{
				if (this.virtualItemInfo_ == null)
				{
					this.VirtualItemInfo = new RogueVirtualItem();
				}
				this.VirtualItemInfo.MergeFrom(other.VirtualItemInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600203E RID: 8254 RVA: 0x0005B894 File Offset: 0x00059A94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600203F RID: 8255 RVA: 0x0005B8A0 File Offset: 0x00059AA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 82U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.virtualItemInfo_ == null)
					{
						this.VirtualItemInfo = new RogueVirtualItem();
					}
					input.ReadMessage(this.VirtualItemInfo);
				}
			}
		}

		// Token: 0x04000D33 RID: 3379
		private static readonly MessageParser<ChessRogueUpdateMoneyInfoScNotify> _parser = new MessageParser<ChessRogueUpdateMoneyInfoScNotify>(() => new ChessRogueUpdateMoneyInfoScNotify());

		// Token: 0x04000D34 RID: 3380
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000D35 RID: 3381
		public const int VirtualItemInfoFieldNumber = 10;

		// Token: 0x04000D36 RID: 3382
		private RogueVirtualItem virtualItemInfo_;
	}
}
